package com.itdfq.logtest.controller;

import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author GocChin
 * @Date 2021/7/21 9:13
 * @Blog: itdfq.com
 * @QQ: 909256107
 * @Description:
 */
@RestController
@Slf4j
public class LogTestController {

    @RequestMapping("/test")
    public String test(){
        log.trace("trace测试");
        log.debug("debug测试");
        log.warn("warn测试");
        log.info("info测试");
        log.error("error测试");
        return "访问成功";
    }
}
